import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
		linkid: -1,//登录记录用户linkid
  },
  mutations: {
	  setlinkid(state, linkid){
		  state.linkid = linkid
	  }
	 
  },
  actions: {
	  setlinkid(context, val) {
		  context.commit('setlinkid', val);
	  }
	  
  },
  modules: {
  }
})
